package com.zpp.wedding_admin.mapper;

import com.zpp.wedding_admin.entity.CameraWork;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 朱盼盼
 * @since 2022-12-29
 */
@Mapper
public interface CameraWorkMapper extends BaseMapper<CameraWork> {

    List<CameraWork> getAllList();

    List<CameraWork> getById(String id);

    boolean pass(String id, String reason);

    boolean noPass(String id, String reason);

    boolean goodAdd(String id);

    boolean collectSubtract(String id);

    boolean collectAdd(String id);

    boolean goodSubtract(String id);

    List<CameraWork> getWorkPageVo(@Param("id") Integer id,
                                   @Param("labelIDs") Integer[] labelIDs,
                                   @Param("locationIDs") Integer[] locationIDs);

    CameraWork getByWorkId(Integer id);

    List<CameraWork> getAllListByUserId(Integer id);
}
